#ifndef symSocket_h__
#define symSocket_h__
#include "../skyAdapter.h"
#ifdef _SYMBIAN
#include "./SIPExSocketEngine.h"

namespace Sky
{
	class OSSocket : public Object, public MSIPExSocketEngineObserver
	{
	public:
			typedef fastdelegate::FastDelegate2<const TUint8*, TInt> DoneCallback;
	public:
		virtual void onReadDataDone( TPtrC8 aData )
		{
			_rcb(aData.Ptr(),aData.Length());
		}
		virtual void onWriteDataDone( TPtrC8 aData )
		{		
			_wcb(aData.Ptr(),aData.Length());
		}
	protected:
		CSIPExSocketEngine* _sockets;
//		TBuf8<1024> _sendBuf;
//		TBuf8<1024> _writeBuf;
		DoneCallback _rcb;
		DoneCallback _wcb;
	};
}
#endif
#endif
